/**
 *  定义各个API的 baseURL
 */
const common = {
  appid: 'wxb313a0178e4b0a48',
  wechatOauthUrl: 'https://open.weixin.qq.com/connect/oauth2/authorize',
  mapKey: "NPMBZ-HEDCU-FCMV4-2C2BF-S7KTE-VDBC5",
  staticUrl: 'http://static.golang365.com/'
}

const baseURL = {
  /** 生产 */ 
  production: {
    ...common,
    host: 'http://api.zk2020.com/api/v2',
    redirect_uri: 'http://www.zk2020.com/#/wechatlogin',
    login_uri: 'http://www.zk2020.com/#/login',
  },
  /** 测试 */ 
  sit: {
    ...common,
    appid: 'wxc49aa22c604c274e',
    host: 'http://gas-api.golang365.com/api/v2',
    redirect_uri: 'http://gas.golang365.com/#/wechatlogin',
    login_uri: 'http://gas.golang365.com/#/login'
  },
  /** 开发 */
  development: {
    ...common,
    host: 'http://localhost:7788/api/v2',
    redirect_uri: 'http://gas.golang365.com/#/wechatlogin',
    login_uri: 'http://gas.golang365.com/#/login',
  }
}[process.env.NODE_ENV || 'production']

export default baseURL;
